package com.ruoyi.food.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ruoyi.food.api.model.FoodDiscountVo;
import com.ruoyi.food.domain.Food;
import com.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author steakliu
 * @email 2319492349@qq.com
 * @date 2021-01-24 17:20:11
 */
@Mapper
public interface FoodMapper extends BaseMapperPlus<FoodMapper, Food, Food> {
    /**
     * 食物细节通过id列表
     *
     * @param ew ew
     * @return {@link List}<{@link FoodDiscountVo}>
     */
    List<FoodDiscountVo> listFoodDetailByFoodIds(@Param(Constants.WRAPPER) Wrapper<Object> ew);
}
